﻿using System;
using Autodesk.Revit.UI;
using YJKRevitKernel.FormUtility.ModelessFormControlSuite.ModelLayer;

namespace SampleAndTest.ModelessFormControlSuite
{
	internal class StackFactory : IOperateStackFactory
	{
		internal StackFactory(UIDocument inputUiDoc)
		{
			this.m_useUiDocument = inputUiDoc;
		}

		public PickObjectMethod GetAPickMethod(int caseIndex)
		{
			return new PickObjectMethod(this.m_useUiDocument.Selection.PickPoint);
		}

		public IOperateStack GetAStack(int caseIndex)
		{
			if (caseIndex == 0)
			{
				return new LineStack(this.m_useUiDocument);
			}
			return new ArcStack(this.m_useUiDocument);
		}

		private UIDocument m_useUiDocument;
	}
}
